//
//  ByIndexConfirmSuccessVC.m
//  mijifen_ios
//
//  Created by mc on 2017/11/7.
//  Copyright © 2017年 itboye. All rights reserved.
//

#import "ByIndexConfirmSuccessVC.h"

// view
#import "ByViewHeaderSuccess.h"

@interface ByIndexConfirmSuccessVC ()

@end

@implementation ByIndexConfirmSuccessVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"验码成功";
    [self addLeftBackBarButtonItem];
    [self createViews];
}

#pragma mark -
- (void)createViews{
    ByViewHeaderSuccess *headerView = [[ByViewHeaderSuccess alloc] initWith:@"Common_success" title:@"验证成功"];
    [self.view addSubview:headerView];
    __block CGFloat height;
    [headerView mas_makeConstraints:^(MASConstraintMaker *make) {
        if (@available(iOS 11.0,*)) {
            height = (self.view.height - 50 * 2 - 10 - self.view.safeAreaInsets.bottom) / 2;
            make.top.equalTo(self.view.mas_safeAreaLayoutGuideTop);
            make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, height));
        }else{
            height = (self.view.height - 50 * 2 - 10) / 2;
            make.top.equalTo(self.view.mas_top);
            make.size.mas_equalTo(CGSizeMake(SCREEN_WIDTH, height));
        }
        
    }];
}



@end
